import Components from './components'

let vue3UI = {
  install: function (Vue) {
    for (const key in Components) {
      Vue.component(Components[key]['name'], Components[key])
    }
  },
}
// 算法题

function isVolid(s) {
  let reg = /[^\{\}\(\)\[\]]/
  if (reg.test(s)) {
    return false
  }
  let len = s.length
  // console.log(len);
  if (len % 2 === 1) {
    return false
  }
  let halfLen = len / 2
  let obj = {
    '(': ')',
    '{': '}',
    '[': ']',
  }
  for (let i = 0; i < halfLen; i++) {
    if (obj[s[i]] !== s[len - i - 1]) {
      return false
    }
    
  }
  return true
}

let a = {
  b:undefined,
  c:'张三'
}

let b =  {...a}

b.c = '李四'
console.log(b);
console.log(a.c);


// console.log('🚀 ~ ', isVolid('{{[[[[[{{[[]]}}]]]]]}}'))

export default vue3UI
